<?php

	class NavigationView{
		
		private static $RegisterView = "Register";
		private static $FileID ="FileID";
		private static $FileUpload = "Upload";
		private static $delete = "delete";
		public $filed;
		// Kollar om url:en säger ?Register
		public function navRegister(){
			if(isset($_GET[self::$RegisterView])){
				return true;
			}
			return false;
		}
		public function navPicture()
		{
			if(isset($_GET[self::$FileID])){
				return true;
			}
			return false;
		}
		public static function getProductLink($File) {
			
			return "?" . self::$FileID . "=" . $File;

		}
		public static function deletePath($id){
			return self::getProductLink(FileUploadView::getFileName()) . "&" . self::$delete . "=" . $id;
		}

		public function Upload(){
			if(isset($_GET[self::$FileUpload])){
				return true;
			}
			return false;
		}



		
	}
